// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.common.mybatis.handlers.SysFileListTypeHandler;
import com.fowo.api.sys.entity.*;
import com.fowo.api.sys.entity.SysFile;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * Platformshipping
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "platform_shipping", autoResultMap = true)
@Schema(title = "平台仓发货单")
public class Platformshipping implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 发货单号
   */
  @TableField(value = "`shipment_code`")
  @Schema(title = "发货单号")
  private String shipmentCode;

  /**
   * 发货仓库
   */
  @TableField(value = "`deliverywarehouse`")
  @JoinField(Warehouse.class)
  @Schema(title = "发货仓库")
  private Long deliverywarehouse;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 发货时间
   */
  @TableField(value = "`delivery_time`")
  @Schema(title = "发货时间")
  private java.util.Date deliveryTime;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 发货状态 (0 - 待配货; 1 - 待发货; 2 - 已发货; 3 - 已作废; )
   */
  @TableField(value = "`shippingstatus`")
  @Schema(title = "发货状态")
  private String shippingstatus;

  /**
   * 到货时间
   */
  @TableField(value = "`arrivaltime`")
  @Schema(title = "到货时间")
  private java.util.Date arrivaltime;

  /**
   * 开船时间
   */
  @TableField(value = "`sailtime`")
  @Schema(title = "开船时间")
  private java.util.Date sailtime;

  /**
   * 预计到港时间
   */
  @TableField(value = "`expectedarrivaltime`")
  @Schema(title = "预计到港时间")
  private java.util.Date expectedarrivaltime;

  /**
   * 实际妥投时间
   */
  @TableField(value = "`actualdueime`")
  @Schema(title = "实际妥投时间")
  private java.util.Date actualdueime;

  /**
   * 实际发货时间
   */
  @TableField(value = "`actualdeliverytime`")
  @Schema(title = "实际发货时间")
  private java.util.Date actualdeliverytime;

  /**
   * 物流中心编码
   */
  @TableField(value = "`logisticscode`")
  @Schema(title = "物流中心编码")
  private String logisticscode;

  /**
   * 物流信息
   */
  @TableField(value = "`logistics_info`")
  @Schema(title = "物流信息")
  private String logisticsInfo;

  /**
   * 备注
   */
  @TableField(value = "`remarks`")
  @Schema(title = "备注")
  private String remarks;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 物流商
   */
  @TableField(value = "`logisticsprovider`")
  @JoinField(LogisticsProvider.class)
  @Schema(title = "物流商")
  private Long logisticsprovider;

  /**
   * 物流方式
   */
  @TableField(value = "`logisticsprovider_id`")
  @JoinField(LogisticsChannel.class)
  @Schema(title = "物流方式")
  private Long logisticsproviderId;

  /**
   * 分摊方式 (0 - 按计费重; 1 - 按实重; 2 - 按体积重; 3 - 按SKU; 4 - 按箱子体积; 5 - 自定义; )
   */
  @TableField(value = "`headfeetype`")
  @Schema(title = "分摊方式")
  private String headfeetype;

  /**
   * 发货人
   */
  @TableField(value = "`sendgoodspeople`")
  @JoinField(SysUser.class)
  @Schema(title = "发货人")
  private Long sendgoodspeople;

  /**
   * 订单物流状态 (1 - 状态1; 2 - 状态2; )
   */
  @TableField(value = "`orderlogisticsstatus`")
  @Schema(title = "订单物流状态")
  private String orderlogisticsstatus;

  /**
   * 负责人
   */
  @TableField(value = "`principalusername`")
  @JoinField(SysUser.class)
  @Schema(title = "负责人")
  private Long principalusername;

  /**
   * 附件
   */
  @TableField(value = "`fj`", typeHandler = SysFileListTypeHandler.class)
  @Schema(title = "附件")
  private List<SysFile> fj;

  /**
   * 是否锁库存 (0 - 是; 1 - 否; )
   */
  @TableField(value = "`isinventorylocked`")
  @Schema(title = "是否锁库存")
  private String isinventorylocked;

  /**
   * 拣货状态 (0 - 是; 1 - 否; )
   */
  @TableField(value = "`pickingnot`")
  @Schema(title = "拣货状态")
  private String pickingnot;

  /**
   * wfs货件号
   */
  @TableField(value = "`sendgoodscode`")
  @Schema(title = "wfs货件号")
  private String sendgoodscode;
}
